pipeline {
    agent any
    stages {
        stage('Deploy') {
            input {
                message "是否发布并选择选择环境"
                parameters {
                    string(name: 'ENVTYPE', defaultValue: 'DEV', description: 'env type...[DEV/STAG/PROD]')
                }
            }
            steps {
                echo "Deploying to ${ENVTYPE}, doing..."
            }
        }
    }
}
